package cn.edu.sdjzu.xg.eagle.service.impl;

import cn.edu.sdjzu.xg.eagle.entity.Student;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;
import cn.edu.sdjzu.xg.eagle.util.Condition;
import cn.edu.sdjzu.xg.eagle.util.Pagination;

import java.lang.reflect.InvocationTargetException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface StudentService {

    Collection<Student> findAll(List<Condition> conditionList, Pagination pagination)
            throws SQLException, BaseException, InvocationTargetException;
    boolean add(Student Student) throws SQLException, BaseException, InvocationTargetException;
    Student find(Long id) throws SQLException, BaseException, InvocationTargetException;
    Student find(Connection connection, Long id) throws SQLException, BaseException, InvocationTargetException;

}
